package com.pt.manage.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.pt.manage.mapper.studentHomeworkMapper;
import com.pt.manage.domain.studentHomework;
import com.pt.manage.service.IstudentHomeworkService;

/**
 * 学生作业Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-28
 */
@Service
public class studentHomeworkServiceImpl implements IstudentHomeworkService 
{
    @Autowired
    private studentHomeworkMapper studentHomeworkMapper;

    /**
     * 查询学生作业
     * 
     * @param studentID 学生作业主键
     * @return 学生作业
     */
    @Override
    public studentHomework selectstudentHomeworkByStudentID(Long studentID)
    {
        return studentHomeworkMapper.selectstudentHomeworkByStudentID(studentID);
    }

    /**
     * 查询学生作业列表
     * 
     * @param studentHomework 学生作业
     * @return 学生作业
     */
    @Override
    public List<studentHomework> selectstudentHomeworkList(studentHomework studentHomework)
    {
        return studentHomeworkMapper.selectstudentHomeworkList(studentHomework);
    }

    /**
     * 新增学生作业
     * 
     * @param studentHomework 学生作业
     * @return 结果
     */
    @Override
    public int insertstudentHomework(studentHomework studentHomework)
    {
        return studentHomeworkMapper.insertstudentHomework(studentHomework);
    }

    /**
     * 修改学生作业
     * 
     * @param studentHomework 学生作业
     * @return 结果
     */
    @Override
    public int updatestudentHomework(studentHomework studentHomework)
    {
        return studentHomeworkMapper.updatestudentHomework(studentHomework);
    }

    /**
     * 批量删除学生作业
     * 
     * @param studentIDs 需要删除的学生作业主键
     * @return 结果
     */
    @Override
    public int deletestudentHomeworkByStudentIDs(Long[] studentIDs)
    {
        return studentHomeworkMapper.deletestudentHomeworkByStudentIDs(studentIDs);
    }

    /**
     * 删除学生作业信息
     * 
     * @param studentID 学生作业主键
     * @return 结果
     */
    @Override
    public int deletestudentHomeworkByStudentID(Long studentID)
    {
        return studentHomeworkMapper.deletestudentHomeworkByStudentID(studentID);
    }
}
